$(document).ready(function() {
		lastBlock = $("#a1");
		$s = $(".accordion ul li .a").size();
		maxWidth = 998 - ($s-1)*35 ;
		minWidth = 35;	

		$(".accordion #a1").css({width:maxWidth});
		$(".accordion ul li .wrap").css({width:maxWidth});
		
		$(".accordion ul li .a").hover(
		  function(){
			$(lastBlock).animate({width: minWidth+"px"}, { queue:false, duration:400 });
			$(this).animate({width: maxWidth+"px"}, { queue:false, duration:400});
			lastBlock = this;
		  }
		);
	});